import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable, Subject } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class FirstService {

  private dataSubject: Subject<any> = new BehaviorSubject("admin@inapp.com");
  public dataSubcription: Observable<any> = this.dataSubject.asObservable();

  constructor() { }

  public setEmail (email: string) {
    this.dataSubject.next(email);
  }
}
